package com.ideaaedi.zoo.example.springboot.mq.rocketmq;

import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.TimeUnit;

/*
 * 示例：在底座zoo-foundation上集成zoo-diy-feature-msg-mq-by-rocketmq
 */
@SpringBootApplication
public class ExampleSpringbootMsgMqRocketmqApplication {
    
    @SneakyThrows
    public static void main(String[] args) {
        SpringApplication.run(ExampleSpringbootMsgMqRocketmqApplication.class, args);
        TimeUnit.SECONDS.sleep(3);
        System.err.println();
        System.err.println();
        System.err.printf(
                """
                启动项目后，观察控制台输出即可
                
                生产者demo：%s
                消费者demo：%s
                """, DemoProducer.class.getName(), DemoConsumer.class.getName()
        );
        System.err.println();
        System.err.println();
        System.err.println();
        System.err.println();
    }
}
